package com.autumn.config.api.dto.output;

import com.autumn.config.api.consts.ConfigureConsts.ConnectionTypeConsts;

/**
 * 应用数据源输出
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2018-01-01 16:48:34
 */
public class ApplicationInfoDataSourceOutput extends ConfigureBaseOutput {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3920118308793832805L;

	private Long appId;
	private Long targetAppId;
	private String targetAppName;
	private Long connectionId;
	private String connectionName;
	private Integer connectionType;

	public Long getAppId() {
		return appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public Long getTargetAppId() {
		return targetAppId;
	}

	public void setTargetAppId(Long targetAppId) {
		this.targetAppId = targetAppId;
	}

	public String getTargetAppName() {
		return targetAppName;
	}

	public void setTargetAppName(String targetAppName) {
		this.targetAppName = targetAppName;
	}

	public Long getConnectionId() {
		return connectionId;
	}

	public void setConnectionId(Long connectionId) {
		this.connectionId = connectionId;
	}

	public String getConnectionName() {
		return connectionName;
	}

	public void setConnectionName(String connectionName) {
		this.connectionName = connectionName;
	}

	public Integer getConnectionType() {
		return connectionType;
	}

	public void setConnectionType(Integer connectionType) {
		this.connectionType = connectionType;
	}

	/**
	 * 获取连接类型名称
	 * 
	 * @return
	 */
	public String getConnectionTypeName() {
		return ConnectionTypeConsts.getName(this.getConnectionType());
	}

}
